package com.atguigu.gulimall.seckill.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.seckill.feign.fallback.CouponFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @create: 2024/9/16
 * @author: gyhe10
 * @description: 远程调用 coupon 服务的 feign 接口
 **/

@FeignClient(value = "gulimall-coupon", fallback = CouponFeignServiceFallback.class)
public interface CouponFeignService {

    @GetMapping("/coupon/seckillsession/latest3DaysSession")
    R getLatest3DaysSession();
}
